# Maintainer: Jan de Groot <jgc@archlinux.org>
# Contributor: Alexander Baldeck <alexander@archlinux.org>

pkgname=glproto
pkgver=1.4.17
pkgrel=1
pkgdesc="X11 OpenGL extension wire protocol"
arch=(any)
url="https://xorg.freedesktop.org/"
license=('custom')
source=(https://xorg.freedesktop.org/releases/individual/proto/${pkgname}-${pkgver}.tar.bz2)
sha256sums=('adaa94bded310a2bfcbb9deb4d751d965fcfe6fb3a2f6d242e2df2d6589dbe40')

build() {
  cd ${pkgname}-${pkgver}
  ./configure --prefix=/usr
  make
}

package() {
  cd ${pkgname}-${pkgver}
  make DESTDIR="${pkgdir}" install
  install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
  install -m644 "COPYING" "${pkgdir}/usr/share/licenses/${pkgname}/"
}
